For anyone that knows me one of my favorite things of many is "Space." The following is of an astroaut explaing the practicals of going 1 & 2 in space to children. It is pretty good actually.
So yes you do have to pee and poop in space ya can't hold it. So this vid answers the question. LOL
(
The how to's of 1 & 2 in space )